function Row(graph, pack){
	this.graph = graph;
	this.id=pack.row_id;
	this.values = pack.channels;
	this.channels = [];
	this.plots = [];
	this.setChannels = function (){
		for (var key in this.values){
			//console.log(key);
			//console.log('prishlo v kanal', this.values[key]);
			this.graph.channels[key].addPlots(this.values[key]);
			
		}
		//console.log(this.graph.channels['channel-1'].plots[0]);
	}
	this.addAvg = function(par, pack){		
		for (var key in this.values){
			this.graph.channels[key].addSubPlots(par, pack.channels[key]);
		}
	}
	this.setChannels();
}